// Thoroughbred.java
package A1;

import java.util.Calendar;

/**
 *
 */
public class Thoroughbred {

    /**
     * Default constructor
     */
    public Thoroughbred() {
    }

    /**
     *
     */
    private String mother;

    /**
     *
     */
    private String father;

    /**
     *
     */
    private int birthYear;

    /**
     * @return
     */
    public int getCurrentAge() {
        Calendar calendar = Calendar.getInstance();
        int currentYear = calendar.get(Calendar.YEAR);
        return currentYear - birthYear;
    }

    /**
     * @return
     */
    public String getFather() {
        return father;
    }

    /**
     * @return
     */
    public String getMother() {
        return mother;
    }

}